"use client"; import { useParams } from "next/navigation"; import { PageCanvas } from "@/components/editor/page-canvas"; /** * /w/:workspace/page/:id — the page canvas. The [id] layout has already * loaded page + blocks and opened the realtime channel; PageCanvas branches: * a database page (page.databaseId set) renders the full DatabasePageView, a * plain page renders PageView (the block editor). */ export default function PageIndexPage() { const params = useParams<{ id: string }>(); const pageId = params?.id ?? ""; if (!pageId) return null; return ; }